﻿using ErrorOr;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gym.Domain.SessionAggregate
{
    public static class SessionErrors
    {
        public static readonly Error CannotCancelPastSession = Error.Validation(
            "Session.CannotCancelPastSession",
            "参与者无法取消已完成的预约");

        public readonly static Error CannotHaveMoreReservationsThanParticipants = Error.Validation(
            code: "Session.CannotHaveMoreReservationsThanParticipants",
            description: "预订人数不能超过课程允许的数量");

        public readonly static Error CannotCancelReservationTooCloseToSession = Error.Validation(
            code: "Session.CannotCancelReservationTooCloseToSession",
            description: "无法取消预约，距离课程开始时间不足24小时");
    }
}
